package com.gjs.reviewtree.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gjs.reviewtree.bean.Review;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface ReviewMapper extends BaseMapper<Review> {

    @Update("update review set sub_count = sub_count + #{count} where id = #{id}")
    int updateSubCountById(@Param("id") Long id, @Param("count") int count);
}
